<?php
   include "connect.php";
//   $tablename = "badge_id";
   
   $badgedata = $_POST['badgedata'];
   $badgedata  = explode(',', $badgedata[0]);
   $name =  $badgedata[0];

       	mysqli_query($con, "UPDATE badge_id SET name = '$name' WHERE id = '1' ");

?>
 <table width="100%" border="0" cellspacing="1" class="form" face='Arial' size='5'>
          
		  <tr>
          <td><h2 align="center"><?php echo $name ?></h2></td>
          </tr>